import request from '@/utils/request'
const path = "/pay"

/* 获取所有列表
@param 条件查询
*/
export function findOrderList(params) {
  return request({
      url: path + '/order/',
      method: 'get',
      params
  })
}
/* 获取信息接口
@param wheelId Y
*/
export function getOrderById(data) {
  return request({
    url: path + '/order/getItemById/',
    method: 'post',
    data
  })
}
/* 根据用户ID修改某个角色信息
@param 所有参数
*/
export function updateOrder(data) {
  return request({
    url: path + '/order/updateAction/',
    method: 'post',
    data
  })
}

export function exportExcelForOrder(data) {
  return request({
      url: path + '/order/exportExcelForOrder/',
      method: 'post',
      data
  })
}

export function exportExcel(data) {
  return request({
      url: path + '/order/exportExcel/',
      method: 'post',
      data,
      responseType: 'blob',
  })
}

export function exportExcelForSendItem(data) {
  return request({
      url: path + '/order/exportExcelForSendItem/',
      method: 'post',
      data,
      responseType: 'blob',
  })
}
export function importExcelForWx(data) {
  return request({
      url: path + '/order/importExcelForWx/',
      method: 'post',
      data,
      responseType: 'blob',
      noEncript: true
  })
}